package com.gxa.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 用户表
 * @TableName sys_user
 */
@TableName(value ="sys_user")
@Data
public class SysUser implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "ID")
    private String id;

    /**
     * 昵称
     */
    @TableField(value = "NICKNAME")
    private String nickname;

    /**
     * 用户名
     */
    @TableField(value = "USERNAME")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "PASSWORD")
    private String password;

    /**
     * 邮箱
     */
    @TableField(value = "EMAIL")
    private String email;

    /**
     * 联系电话
     */
    @TableField(value = "MOBILE")
    private String mobile;

    /**
     * 状态 0有效 1锁定
     */
    @TableField(value = "STATUS")
    private String status;

    /**
     * 最近访问时间
     */
    @TableField(value = "LAST_LOGIN_TIME")
    private Date lastLoginTime;

    /**
     * 性别 0男 1女 2保密
     */
    @TableField(value = "SEX")
    private String sex;

    /**
     * 是否开启tab，0关闭 1开启
     */
    @TableField(value = "IS_TAB")
    private String isTab;

    /**
     * 主题
     */
    @TableField(value = "THEME")
    private String theme;

    /**
     * 头像
     */
    @TableField(value = "AVATAR")
    private String avatar;

    /**
     * 描述
     */
    @TableField(value = "DESCRIPTION")
    private String description;

    /**
     * 盐值
     */
    @TableField(value = "SALT")
    private String salt;

    /**
     * 修改时间
     */
    @TableField(value = "CREATOR")
    private String creator;

    /**
     * 
     */
    @TableField(value = "CREATOR_NAME")
    private String creatorName;

    /**
     * 
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "UPDATOR")
    private String updator;

    /**
     * 
     */
    @TableField(value = "UPDATOR_NAME")
    private String updatorName;

    /**
     * 
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 角色集合   @TableField(exist = false) 该注解表示不和数据库字段映射
     */
    @TableField(exist = false)
    private List<SysRole> roles;
}